package com.nineclock.auth.exception;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.springframework.security.oauth2.common.exceptions.OAuth2Exception;

/**
 * @JsonSerialize: 指定json序列化的格式
 *
 * @author 黑马程序员
 * @Company http://www.ithiema.com
 * @Version 1.0
 */
@JsonSerialize(using = NcOAuthExceptionJacksonSerializer.class)
public class NcOAuth2Exception extends OAuth2Exception {
    public NcOAuth2Exception(String msg) {
        super(msg);
    }

    public NcOAuth2Exception(String msg, Throwable t) {
        super(msg, t);
    }
}
